package com.tvunetworks.center.user.model;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Size;

/**
 * @program: tvucc-user
 * @description: User
 * @author lebronchen
 * @create: 2019-02-28 16:51
 **/
@Data
@Table(name = "tvu_user")
@Accessors(chain = true)
public class User {

    @Id
    private String id;
    private String email;
    private String phone;
    private String active;
    private String role;
    private String createUserId;
    private String userParentId;
    private String remark;
    private String registerTime;
    @Size(max = 100)
    private String firstName;
    @Size(max = 100)
    private String lastName;
//    @NotNull(message = "loginCount不能为空")
//    @Max(value = 10, message = "loginCount最大值为10")
//    @Min(value = 5, message = "loginCount最小值为5")

}
